import {Route, Routes, Navigate} from 'react-router-dom';
import sty from './App.module.scss';
import Editor from '@/views/editor/index';
import Display from './views/display/index';

export default function App() {
    return (
        <main className={sty.container}>
            <Routes>
                <Route path='/editor' element={<Editor />} />
                <Route path='/display' element={<Display />} />
                <Route path='/' element={<Navigate to='/editor' replace />} />
            </Routes>
        </main>
    );
}
